#ifndef _IWDG_H_
#define _IWDG_H_
#include "rcc_apb_periph.h"
#include "device.h"

struct peripheral_iwdg
{
    sj_uint32 *instance;
    sj_uint32 prescaler;
    sj_uint32 reload;
};

struct rcc_lsi_periph
{
    sj_char apb_offset;
};

struct iwdg_device_data
{
    struct rcc_lsi_periph *rcc_apb;
    struct peripheral_iwdg param;
};

#endif
